﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NLBS.Entity;

namespace NLBS.Data.Interface
{
    public interface IFriendLinkService
    {
        #region links
        /// <summary>
        /// 获取友情链接
        /// </summary>
        /// <returns></returns>
        IList<FriendLink> GetLinks(LinkItemType linkType);

        /// <summary>
        /// 获取特定链接
        /// </summary>
        /// <param name="link"></param>
        /// <returns></returns>
        FriendLink GetLinkByID(int linkID);

        /// <summary>
        /// 添加友情链接
        /// </summary>
        /// <param name="link"></param>
        void InsertLink(FriendLink link);

        /// <summary>
        /// 更新友情链接
        /// </summary>
        /// <param name="link"></param>
        /// <returns></returns>
        int UpdateLink(FriendLink link);

        /// <summary>
        /// 删除友情链接
        /// </summary>
        /// <param name="link"></param>
        /// <returns></returns>
        int DeleteLink(int linkID);

        #endregion
    }
}
